gdkdisplay-x11: Do not pass a NULL source device to _gdk_display_device_grab_update
authorCarlos Garcia Campos <cgarcia@igalia.com>
Tue, 18 Jun 2013 11:20:10 +0000 (13:20 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 16 Sep 2013 10:47:38 +0000 (12:47 +0200)
commit9dbc19ea174d880d5149945d832f0bcf08bfa406
tree77ff230a0e528faf33f19d92e0f89ae2150c1b35
parent247c4cecfc22c9ee73ad98c3eb796efc91c217b5
gdkdisplay-x11: Do not pass a NULL source device to _gdk_display_device_grab_update

Pass the master device instead if the last slave is NULL. This is
unlikely to happen in most of the cases, but can happen when running
unit tests where there's no pointer interaction to update the last
slave.

https://bugzilla.gnome.org/show_bug.cgi?id=696756
gdk/x11/gdkdisplay-x11.c